/*
 * terminator.cpp
 */
#include "../middleware/CommunicationVendedor.h"
#include "../middleware/CommunicationAdpt.h"
#include "../middleware/CommunicationDespacho.h"
#include "../middleware/CommunicationRobot16.h"
#include "../middleware/CommunicationRobot5.h"
#include "../application/AdminKeys.h"
#include "clienteCommon.h"
#include "../middleware/CommunicationCanastos.h"
#include "../middleware/CommunicationRobot12.h"
#include "../middleware/CommunicationRobot11.h"
#include "../middleware/CommunicationAGV.h"
#include "../middleware/CommunicationPrimerCinta.h"
#include "DefinicionesComunes.h"
#include "Cinta13A.h"
#include "Cinta13B.h"
#include "Cinta15.h"
#include "Robot11AProductor.h"
#include "Robot11BProductor.h"
#include "Robot14Consumidor.h"
#include "Robot14Productor.h"
#include "Robot16Consumidor.h"
#include "../middleware/CommunicationADP.h"

int main(int argv, char **agrv)
{
	AdminKeys adminZonaIzq(ZONA_IZQ);
	AdminKeys adminZonaMedio(ZONA_MED);
	AdminKeys adminZonaDer(ZONA_DER);

	ipc::Sequence::destroy(CLIENTEID_SEQUENCE_PATH,CLIENTEID_SEQUENCE_KEY);
//	middleware::CommunicationVendedor::destroy();
//	middleware::CommunicationAdpt::destroy();
//	middleware::CommunicationDespacho::destroy();
//	middleware::CommunicationRobot16::destroy();

//	middleware::CommunicationADP::destroy();
//	middleware::CommunicationRobot5::destroy();
//
//	middleware::CommunicationCanastos::destroy(adminZonaIzq.getCanastosKey());
//	middleware::CommunicationCanastos::destroy(adminZonaDer.getCanastosKey());
//	middleware::CommunicationCanastos::destroy(adminZonaMedio.getCanastosKey());
//
//	middleware::CommunicationRobot11::destroy(adminZonaIzq.getRobot11Key());
//	middleware::CommunicationRobot11::destroy(adminZonaDer.getRobot11Key());
//
//	middleware::CommunicationRobot12::destroy(adminZonaMedio.getLeftRobot12Key());
//	middleware::CommunicationRobot12::destroy(adminZonaMedio.getRightRobot12Key());
//
//	middleware::CommunicationAGV::destroy(adminZonaIzq.getAgvKey());
//	middleware::CommunicationAGV::destroy(adminZonaDer.getAgvKey());
//	middleware::CommunicationAGV::destroy(adminZonaMedio.getAgvKey());
//
//	middleware::CommunicationPrimerCinta::destroy(adminZonaIzq.getCintaKey());
//	middleware::CommunicationPrimerCinta::destroy(adminZonaDer.getCintaKey());
//
//    Cinta13A::destroy();
//    Cinta13B::destroy();
//    Cinta15::destroy();
//    Robot11AProductor::destroy();
//    Robot11BProductor::destroy();
//    Robot14Consumidor::destroy();
//    Robot14Productor::destroy();
//    Robot16Consumidor::destroy();

	return 0;
}
